package com.framework.service.yhbservice;

import com.baomidou.mybatisplus.service.IService;
import com.framework.yhbEntity.user.YhbCreditCard;
import com.framework.yhbEntity.view.CusTranView;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;


public interface YhbCreditCardService extends IService<YhbCreditCard> {

    /**
     * 推荐办卡明细
     * @param cardState
     * @param cardState
     * @param pageNo
     * @return
     */
    List<Map<String,Object>> queryCardList(String token, String cardState, String parms, Integer pageNo);
    /**
     * 信用卡查询奖励
     * @param token 登录人token
     * @param monthTime 审核状态
     * @return
     */
    Map<String,Object> queryCardRewardMap(String token, String monthTime);

    /**
     * 录入信用卡
     */
    void insertCard(YhbCreditCard yhbCreditCard);

    /**
     * 查询信用卡申请是否重复
     * @param userId
     * @param bankType
     * @param phone
     * @return
     */
    boolean queryIsCardRepeat(String userId, Integer bankType, String phone);

    List<CusTranView> getCreditCardList(String token, Integer type, Integer pageNo);

    BigDecimal queryBankAmount(Integer bankType);

    List<CusTranView> getCreditCardListByUserId(String userId, Integer type, Integer pageNo);
}
